package com.zc.common.validator;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <p>Description : </p>
 *
 * @author : xuhongcao
 * @version : v1.0.0
 * @since : 31/3/2022
 **/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.PARAMETER})
public @interface Validator {

    Class<?>[] clazzs();

    /**
     * 必须验证的字段
     * @return
     */
    String[] requiredValidProperty() default "";

    /**
     * 可以排除的字段
     * @return
     */
    String[] excludeValidProperty() default "";

}
